#if 0
#include <errno.h>

#define asdf(name) #name

int __cdecl foo(int arg)
{
    int a;

    a = arg;

    return a;
}

int bar(int arg)
{
    foo(arg);
}

int hi(char ** s, int n)
{
    int i;

    for (i = 0; i < n ; i++)
	printf("%s\n", s[i]);
    return 0;
}

int main(int argc, char ** argv)
{
#if 0
    bar(3);

    char * strptr = asdf(abcdef);
    int x = 1;
    int y = 0;
    int z = 0;

    __asm__ ("leal (%1, %1,4), %0\n\t"
	    : "=r"(x)
	    : "0"(x) );

    printf("x=%d\n", x);
#endif

    //char names[3][10] = {"angxin\0", "shilei\0", "saxiang\0"};
    char * names[3] = {"angxin\0", "shilei\0", "saxiang\0"};
    hi(names, 3);
    hi(argv, argc);
    int x = 0x80808080;
    printf("value:0x%08x, ones:%d, value:0x%08x\n", x, count_ones(x), x);

    return 0;
}
#endif

#if 0
#include <stdio.h>

void  foo(int age,char *b){
    char **a = (char **)b;
    b=(char*)malloc(64);
    printf("0x%08x\n", b[14]);
    sprintf(b,"Your Age is %d",age);
    printf("0x%08x\n", b[14]);
    *a = b;
}

int main ( int argc, char *argv[] ){
    char *a = "abcd";
    char *f = (char *)&a;
    foo(23,f);
    //foo(23,&f);
    f = a;
    printf("%s\n",f);
    //printf("%s\n", a);
    free(f);
    return 0;
}
#endif 

int asdfjkl;
int asdfjkl;
double a;
char x[10];

int main()
{
    //printf("%d::%f\n", asdfjkl,a);
    int i;
    for(i = 0; i < 10; i++)
	printf("%d\n", x[i]);
}
